package com.demo.apparel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 店铺实体类
 * 对应数据库中的 shop 表，用于存储店铺相关信息
 */
@Schema(description = "店铺实体信息")
@Data
@TableName("shop")
public class Shop {

    @Schema(description = "店铺ID",
            example = "shop_1234567890"
            )
    private String shopId;

    @Schema(description = "用户ID",
            example = "user_1234567890"
            )
    private String userId;

    @Schema(description = "店铺名称",
            example = "时尚服装店",
            maxLength = 50)
    private String shopName;

    @Schema(description = "店铺描述",
            example = "专业销售各类时尚服装，品质保证",
            maxLength = 500)
    private String description;

    @Schema(description = "创建时间",
            example = "2024-01-15T10:30:00")
    private LocalDateTime createdTime;

    @Schema(description = "更新时间",
            example = "2024-01-15T14:25:00")
    private LocalDateTime updatedTime;

    @Schema(description = "店铺状态: " +
            "0-关闭/未营业, " +
            "1-正常营业, " +
            "2-暂停营业, " +
            "3-审核中, " +
            "4-审核失败",
            example = "1",
            allowableValues = {"0", "1", "2", "3", "4"})
    private Integer status;
}